using System;
using System.Collections.Generic;
using System.Text;
using Hermes.Framework.FileSystem;
using NUnit.Framework;

namespace Hermes.Framework.Test
{
    [TestFixture]
    public class FileSystemUtilsTest
    {
        [Test]
        public void TestGetProtocol()
        {
            string protocol = FileSystemUtils.GetProtocol(@"file://c:\hello\world.txt");
            Assert.AreEqual("file", protocol);
        }

        [Test]
        public void TestGetFileName()
        {
            string fileName = FileSystemUtils.GetFileName(@"file://c:\hello\world.txt");
            Assert.AreEqual(@"c:\hello\world.txt", fileName);
        }
    }
}
